#ifndef __Configuration_H__
#define __Configuration_H__
#include <map>
#include <string>
using namespace std;
namespace wd
{
class Configuration
{
public:
   //获取单例的实例
   static Configuration * getInstance();
   //从配置文件中加载配置
   void loadConfig(const string & filename);
   //获取配置的值key
   string get(const string & key)const;
   //删除拷贝构造函数和赋值构造函数，确保单例
   Configuration(const Configuration&)=delete;
   Configuration & operator=(const Configuration&)=delete;
private:
   Configuration(){}
   ~Configuration(){}
   map<string,string> _map;
};
}




#endif

